@model ShivamEMR.Model.Domain.PatientDomain.PatientRepresentative

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Code)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Code)
    @Html.ValidationMessageFor(model => model.Code)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Title)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Title)
    @Html.ValidationMessageFor(model => model.Title)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.FirstName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.FirstName)
    @Html.ValidationMessageFor(model => model.FirstName)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.MiddleName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.MiddleName)
    @Html.ValidationMessageFor(model => model.MiddleName)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.LastName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.LastName)
    @Html.ValidationMessageFor(model => model.LastName)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.AltFirstName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.AltFirstName)
    @Html.ValidationMessageFor(model => model.AltFirstName)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.AltMiddleName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.AltMiddleName)
    @Html.ValidationMessageFor(model => model.AltMiddleName)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.AltLastName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.AltLastName)
    @Html.ValidationMessageFor(model => model.AltLastName)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.DateOfBirth)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.DateOfBirth)
    @Html.ValidationMessageFor(model => model.DateOfBirth)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Barcode)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Barcode)
    @Html.ValidationMessageFor(model => model.Barcode)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.MaritalSatusID)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.MaritalSatusID)
    @Html.ValidationMessageFor(model => model.MaritalSatusID)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Relation)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Relation)
    @Html.ValidationMessageFor(model => model.Relation)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Priority)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Priority)
    @Html.ValidationMessageFor(model => model.Priority)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Notes)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Notes)
    @Html.ValidationMessageFor(model => model.Notes)
</div>

<div class="editor-label">
    Sex
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.SexID, ((IEnumerable<ShivamEMR.Model.Domain.PersonDomain.Sex>)ViewBag.PossibleSexes).Select(option => new SelectListItem {
        Text = Html.DisplayTextFor(_ => option).ToString(), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.SexID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.SexID)
</div>
<div class="editor-label">
    Picture
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.PictureID, ((IEnumerable<ShivamEMR.Model.Domain.PersonDomain.PersonPicture>)ViewBag.PossiblePictures).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Title), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.PictureID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.PictureID)
</div>
<div class="editor-label">
    PersonAccount
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.PersonAccountID, ((IEnumerable<ShivamEMR.Model.Domain.PersonDomain.PersonAccount>)ViewBag.PossiblePersonAccounts).Select(option => new SelectListItem {
        Text = Html.DisplayTextFor(_ => option).ToString(), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.PersonAccountID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.PersonAccountID)
</div>
<div class="editor-label">
    PersonStatus
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.PersonStatusID, ((IEnumerable<ShivamEMR.Model.Domain.PersonDomain.PersonStatus>)ViewBag.PossiblePersonStatus).Select(option => new SelectListItem {
        Text = Html.DisplayTextFor(_ => option).ToString(), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.PersonStatusID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.PersonStatusID)
</div>
<div class="editor-label">
    Patient
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.PatientID, ((IEnumerable<ShivamEMR.Model.Domain.PatientDomain.Patient>)ViewBag.PossiblePatients).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Title), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.PatientID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.PatientID)
</div>
